#!/bin/bash
sudo mount -t ext3 a9rootfs.ext3 tmpfs/ -o loop
sudo cp -r rootfs/*  tmpfs/
sudo umount tmpfs
qemu-system-arm -M vexpress-a9 -m 512M -kernel ../../linux-5.14.14/arch/arm/boot/zImage -dtb ../../linux-5.14.14/arch/arm/boot/dts/vexpress-v2p-ca9.dtb -nographic -append "root=/dev/mmcblk0  console=ttyAMA0" -sd a9rootfs.ext3

